package br.poli.ecomp.sma.massim.action;

import jason.asSemantics.DefaultInternalAction;
import jason.asSemantics.TransitionSystem;
import jason.asSemantics.Unifier;
import jason.asSyntax.NumberTerm;
import jason.asSyntax.Term;

public class PrintPosition extends DefaultInternalAction{
	public Object execute(TransitionSystem ts, Unifier un, Term[] args)
			throws Exception {
		
		Term x = args[0];
		Term y = args[1];
//		Term newX = args[2];
//		Term newY = args[3];
		
		double vx = ((NumberTerm)x).solve();
		double vy = ((NumberTerm)y).solve();
//		double vxVaca = ((NumberTerm)newX).solve();
//		double vyVaca = ((NumberTerm)newY).solve();
		
		System.out.println("Vx: "+ vx + "Vy" + vy);
//		System.out.println("VxNew: "+ vxVaca + "VyNew" + vyVaca);
	
		return true;
	}
}
